import { MSG_TYPES } from '../../utils/MESSAGE_TYPES'

export default function (xhr, prop, value) {
    const { bgReqId: id } = xhr
    window.postMessage({
        event: MSG_TYPES.setProps,
        id,
        data: {
            prop,
            value
        }
    })
}